{{ $fonts := (site.Data.ui.fonts) }}
{{ $ts := (now.Unix) }}

<!--[ fonts: external ]-->
{{ with ($fonts.external) }}
    {{ range . }}
      <link rel="preload" href="{{ . }}" crossorigin="anonymous" as="style" onload="this.rel='stylesheet'"/>
      <noscript>
        <link rel="stylesheet" href="{{ . }}" crossorigin="anonymous"/>
      </noscript>
    {{ end }}
{{ end }}
<!--[ / fonts: external ]-->

<!--[ fonts: internal ]-->
{{ with ($fonts.internal) }}
    {{ range . }}
      <link rel="preload" href="{{ . }}?ver={{ ($ts) }}" crossorigin="anonymous" as="style" onload="this.rel='stylesheet'"/>
      <noscript>
        <link rel="stylesheet" href="{{ . }}?ver={{ ($ts) }}" crossorigin="anonymous"/>
      </noscript>
    {{ end }}
{{ end }}
<!--[ / fonts: internal ]-->
